/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package enviarentorno;

import java.util.*;

public class factorial {
   
    public static int factorial (int n){
        int f;
        
        f=1;
        for (int i=1;i<=n;i++) {
            f= f*i;
        }
        return f;
    }

}

